package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Aircraft;
import org.example.entity.Time;

import java.util.List;

@Mapper
public interface AircraftMapper extends BaseMapper<Aircraft> {
    List<Aircraft> getGratia();

    Double getMinPrice(@Param("date") String date, @Param("area1") Integer area1, @Param("area2") Integer area2);

    List<Aircraft> getAircraftList(@Param("date") String date, @Param("area1") Integer area1, @Param("area2") Integer area2, @Param("list") List<Time> list, @Param("companyList") List<Integer> company);

    List<Aircraft> getCompany(@Param("date") String date);

    Integer getSeatLeft(@Param("id") Integer id);
}
